var app = new Vue({
  el: '#app',
  data: {
    productList:[
		{
			title:'Outdoor Solar String Lights 2-Pack100 LED Solar',
			prePrize:'43',
			nowPrize:'32',
			stock:'3233',
			desc:'Outdoor Solar String Lights 2-Pack100 LED Solar Powered Fairy Lights Super Bright Solar Lights Outdoor, 8 Modes Decoration Copper Wire Lights for Patio Yard Trees Christmas Wedding Party Decor (Warm White)',
			img:'assets/img/shop/light.jpg',
			imgs:['assets/img/shop/l1.jpg','assets/img/shop/l2.jpg','assets/img/shop/l3.jpg','assets/img/shop/l4.jpg','assets/img/shop/l5.jpg','assets/img/shop/l6.jpg','assets/img/shop/l7.jpg']
			
		},
		{
			title:'Car Windshield Sun Shade',
			prePrize:'43',
			nowPrize:'32',
			stock:'3233',
			desc:'Car Windshield Sun Shade, Foldable Car Umbrella Sunshade Cover UV Block Car Front Window Easy to Store and Use Keeps Cars Cooler While Protecting Car Interior',
			img:'assets/img/shop/car.jpg',
			imgs:['assets/img/shop/c1.jpg','assets/img/shop/c2.jpg','assets/img/shop/c3.jpg','assets/img/shop/c4.jpg','assets/img/shop/c5.jpg','assets/img/shop/c6.jpg','assets/img/shop/c7.jpg']
			
		}
	]
  },
  methods:{
	  toDetail(item){
		  localStorage.setItem("productDetail",JSON.stringify(item));
		  location.href = "product-details.html";
	  }
  }
})